<!-- pages/webview/webview.vue -->
<template>
  <view>
    <web-view :src="pdfUrl"></web-view>
  </view>
</template>

<script>
export default {
  data() {
    return {
      pdfUrl: ''
    }
  },
  onLoad(options) {
    this.pdfUrl = decodeURIComponent(options.src || '')
  }
}
</script>